<?php 
require_once ("model/DAO/conex.php");
function showClientAliadosContent($form,$type) {
		$objResponse = new xajaxResponse();	
	//$objResponse -> alert('ingresas' . $type);
	
		$query = sprintf("SELECT * FROM clientesaliados WHERE clientesaliados.tipo = '%s' ",$type);
		$rsLimit = mysql_query($query) or die(mysql_error());
		$amount=mysql_num_rows($rsLimit);
		
		if($amount > 0){
			$htmlTable ="<table  align='right' width='600px' frame='border'>";
			while ($row = mysql_fetch_assoc($rsLimit)) {
					
					$html .="<tr>";
					$html .="<td>";
					$html .="<a>";
					$html .="<img src=\"".$row['imagen']."\">";				
					$html .="</a>";
					$html .="</td>";
					$html .="<td>";
					$html .="<a class='aParagra'>";
					$html .= $row['nombre'];
					$html .="</a>";
					$html .="</td>";
					$html .="<td>";
					$html .="<a class='aParagra1'>";
					$html .=$row['descripcion'];
					$html .="</a>";					
					$html .="</td>";
					$html .="<tr>";
								

			}
			$htmlEndTable ="<table>";
		}
		$objResponse->assign("divServiceContent","innerHTML",$htmlTable.$html.$htmlEndTable);
		//$objResponse -> script("$('error-message').style.display = '';");
		
	
	return $objResponse;
}
$xajax->register(XAJAX_FUNCTION,"showClientAliadosContent");
?>